# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=liburing
pkgver=2.5
pkgrel=1
pkgdesc="Linux kernel io_uring access library"
url="https://git.kernel.dk/cgit/liburing/"
arch="all"
license="LGPL-2.1-or-later OR MIT"
makedepends="linux-headers"
subpackages="liburing-ffi $pkgname-dev $pkgname-doc"
source="https://git.kernel.dk/cgit/liburing/snapshot/liburing-$pkgver.tar.gz
	"

build() {
	./configure \
		--prefix=/usr \
		--use-libc \
		--mandir=/usr/share/man
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

ffi() {
	amove usr/lib/liburing-ffi.so.*
}

sha512sums="
b537a644ba338fc6edc747e08a0c33e99008f5b0a33be03f304c7f94f4c28473d0eee7b0d731be966bf32be835b0e45beb308b3a0b3f6264a69a9e5362f00928  liburing-2.5.tar.gz
"
